Flexible network simulation tools and related methods

ABSTRACT

Subject matter includes an exemplary flexible network simulator and related methods for testing the ability of electronic devices to communicate with each other on a network, especially in real-time. The exemplary flexible network simulator can establish different connectivity protocols between multiple electronic devices and test the electronic devices using customized sets of network conditions.

TECHNICAL FIELD

[0001] This invention relates generally to network connectivity and more specifically to flexible network simulation tools and related methods.

BACKGROUND

[0002] Smart devices and entertainment electronics for home and travel increasingly communicate with each other over networks. These electronic devices, which have in the past relied only on conventional communication with a server, are now becoming proficient at real-time communication with each other in unconventional ways over a myriad of networks. Sometimes a server is not needed in the peer-to-peer communications between electronic devices, and at other times one of the peers assumes the role of a server in a peer-as-server communication.

[0003] More types of home and office electronic devices are joining the ranks of consumer electronics that can communicate with each other over a network. For example, a media server in the basement of a home may record and distribute media content to other intelligent devices in the home. A user may remotely communicate with the home media server from a friend's house or from a cell phone using a wireless network to control recording of a program. Handheld devices such as cell phones and personal digital assistants (PDAs) increasingly communicate with each other in real-time over the Internet. Two PDAs with video cameras may exchange real-time video content the wireless Internet connection or, two friends in different cities may choose to watch a movie together by simultaneously viewing the movie and sharing real-time chat during the movie. Online computer games also increasingly use real-time peer-to-peer and peer-as-server interaction. Massively multiplayer (MMP) games, for example, comprise one of the fastest growing markets, with some “cult” MMP games attracting several hundred thousand simultaneous players at any given time. Many online games feature simultaneous real-time chat between players.

[0004] Many of these electronic devices that communicate with each other in real-time use diverse network connections, configurations, and protocols. These networks, however, have some undesirable characteristics. For example, wireless networks typically have a notoriously high packet loss rate. Yet developers of the hardware and software for these communicating electronic devices often use local area networks (LANs) during product development that have ideal characteristics. This is usually an unintended circumstance and happens because LANs and virtual local area networks (VLANs) available in software development labs are usually small and the finest available, i.e., stable, dependable, and free from external interferences. Further, networks that more closely resemble the real-world and real-time peer-to-peer and peer-as-server environments in which the electronic devices will eventually be used are sometimes difficult to construct in the development lab. For example, some network administrators deny server access to software and hardware under development. Thus, developers need a way to test hardware and software for the electronic devices against an almost unlimited variety of realistic network conditions and configurations without leaving the lab. Moreover, the developers may need to test completely new network conditions and types of network adversity that may arise with new products, and may need to perform the tests on a multiplicity of network architectures.

SUMMARY

[0005] Subject matter includes an exemplary flexible network simulator and related methods for testing the ability of electronic devices to perform data transfer and communications over a network, especially in real-time. The exemplary flexible network simulator can establish, on a single personal computer (PC), different connectivity protocols between multiple electronic devices and flexibly test the electronic devices with customized sets of adverse network conditions.

[0006] The exemplary flexible network simulator can produce a performance profile and vary the testing based on the performance profile. The exemplary flexible network simulator can also produce information for optimizing data packet and connectivity characteristics.

BRIEF DESCRIPTION OF THE DRAWINGS

[0007]FIG. 1 is a block diagram of an exemplary computing environment in which the subject matter may be practiced.

[0008]FIG. 2 is a block diagram of an exemplary flexible network simulator.

[0009]FIG. 3 is a block diagram of exemplary filters for the exemplary flexible network simulator.

[0010]FIG. 4 is a block diagram of an exemplary configuration module, according to one aspect of the subject matter.

[0011]FIG. 5 is a block diagram on an exemplary executive test engine, according to one aspect of the subject matter.

[0012]FIG. 6 is a block diagram of an exemplary connectivity engine, according to one aspect of the subject matter.

[0013]FIG. 7 is a block diagram of an exemplary diagnostics module, according to one aspect of the subject matter.

[0014]FIG. 8 is a block diagram of an exemplary evaluation module, according to one aspect of the subject matter.

[0015]FIG. 9 is a flow diagram of an exemplary method of simulating realistic network conditions for testing network performance of an electronic device.

[0016]FIG. 10 is a flow diagram of an exemplary method of progressively testing the data transfer performance of an electronic device on a network.

[0017]FIG. 11 is a block diagram of an exemplary computing device suitable for use with the subject matter.

DETAILED DESCRIPTION

[0018] Overview

[0019] The subject matter described herein includes an exemplary system and related methods for flexibly building realistic network connections and conditions s for testing electronic devices that communicate, especially in real-time, on a network. An “electronic device” as used herein is hardware and/or software that can operate electronically and/or optically on a computing network. An exemplary flexible network simulator (NETSIM) is presented, that provides an integrated testing environment on one PC for developing network-worthy hardware and software. The exemplary NETSIM can simulate many different connectivity configurations and conditions, e.g., using different protocols, modem characteristics, and topographies, such as peer-to-peer and peer-as-server. The exemplary NETSIM can apply a wide variety of simulations and/or tests that simulate realistically adverse network conditions likely to be encountered in real-world use. The exemplary NETSIM gathers numerous simulation tools, optimizers, and reporting entities (collectively, “filters”) together in one entity and allows the developer to combine simulations using these filters into unique test profiles featuring customized test sequences, filter combinations, and individualized performance results.

[0020] In one implementation, the exemplary NETSIM establishes gateways between electronic devices and sometimes between these electronic devices and their Internet services. In one implementation, the gateways use network address translation (NAT). The exemplary NETSIM can be tuned, using built-in adapters, to specific connectivity protocols that provide an adaptable testing environment that also includes universal benchmarks. The benchmarks afford confidence and assurance to a developer whose product meets standards set by the benchmarks. The various filters are modular and can be sequenced, combined, and rearranged into various filter profiles. The filters can also be swapped in and out, augmented, updated, and/or replaced with newer and/or different filters.

[0021] Exemplary NETSIM filters can introduce various combinations of upstream and downstream packet loss, latency, bandwidth limitation, packet reordering, and jitter, etc. to simulate the modem limitations, network pitfalls, and traffic volume between devices, e.g., in peer-to-per and peer-as-server environments. This aids the developer by pointing out early in the development process that the software and/or hardware design relies, for example, on sending too much data. Further, the exemplary NETSIM can allow the developer to test control paths, which are prone to problems such as high lag, loss of synchronization, and high packet loss. The exemplary NETSIM can also apply progressive testing, using feedback to simulate ever more challenging network environments. The exemplary NETSIM can also optimize data packet parameters and can present the developer with reports, such as network performance and strength-and-weakness profiles for the product under development.

[0022] Exemplary Computing Environment

[0023]FIG. 1 shows an exemplary computing environment 100 in which the subject matter may be practiced. A computing device 102 includes an exemplary NETSIM 104, which in turn is communicatively coupled with the Internet 106, and with electronic devices, such as electronic device “one” 108, electronic device “two” 110, . . . and electronic device “N” 112. The electronic devices 108, 110, 112 may communicate with each other as peers, or one of the devices 108, 110, 112 may assume the role of a server in peer-as-server communication with the others. The peer-to-peer and peer-as-server communications do not necessarily preclude communication at the same time with other servers and services. The computing device 102 is also coupled with various user-interface devices, such as a keyboard 114 and a monitor 116 for visual display of information 118 regarding the evaluation, troubleshooting, and optimization. The exemplary computing device 102 is illustrated and described in greater detail in FIG. 11.

[0024] A software or hardware developer creating an electronic product that communicates over a network with other electronic devices, especially in real-time, wants the product to run smoothly and operate correctly. The exemplary computing environment 100 can be adopted by the developer as a way to couple one or more electronic devices 108, 110, 112 for testing and troubleshooting their networking performance.

[0025] The exemplary NETSIM 104, therefore, establishes custom connectivity between the coupled electronic devices 108, 110, 112 and controls communication and interaction between them. The exemplary NETSIM 104 also serves as the default gateway between the electronic devices 108, 110, 112 and the Internet 106. The electronic devices 108, 110, 112 send packets to the exemplary NETSIM 104 at its internal IP address. In one implementation, the exemplary NETSIM 104 has two modes, one mode allowing “normal” network interaction between the electronic devices 108, 110, 112 and the other mode allowing the simulation of network adversity.

[0026] Network adversity is a term used herein to describe problems, conditions, and limitations of real-world networks, modems, topologies, protocols, etc. and their configurations. The exemplary NETSIM 104 can present or inject network adversity into the interaction between the electronic devices 108, 110, 112 and/or their Internet service(s) in measured amounts to suit the present stage of development and network-worthiness of the software and/or hardware being developed. The exemplary NETSIM 104 has the capacity to automatically progress from light testing to rigorous testing (i.e., “progressive testing”) as the software and/or hardware under development overcomes network adversity challenges. Thus, the NETSIM 104 can be switched from the aforementioned normal mode—in which an ideal network having little or no network adversity is presented to the coupled electronic devices 108, 110, 112—to a simulation mode, in which a powerful and comprehensive set of filters are flexibly brought to bear on the problem of determining and establishing network-worthiness for software and/or hardware under development.

[0027] Overview of the Exemplary NETSIM

[0028] Accordingly, FIG. 2 shows the exemplary NETSIM 104 of FIG. 1 in greater detail. A simulation engine 202 and a connectivity engine 204 are communicatively coupled with each other and communicatively coupled with a diagnostics module 206 and an evaluation module 208 as illustrated. The simulation engine 202 includes a mode selector 210 to administer, in one implementation, the aforementioned normal mode and simulation mode. The simulation engine 202 further includes a filters module 212, a configuration module 214, and an executive test engine 216.

[0029] The connectivity engine 204 further includes an electronic device interface 218, an Internet interface 220, a network address translation (NAT) simulator 222, and other components to be discussed more fully below with regard to FIG. 6.

[0030] In the simulation engine 202, the filters module 212 includes or comprises a set of filters, each of which aims to provide a discrete network test or condition. The size of the set of filters is variable so that new filters may be added to the set or substituted for filters to be updated or replaced. The filters module 212 will be discussed in greater detail below with respect to FIG. 3.

[0031] The configuration module 214 selects or allows the developer to select filters (and their combination and potential sequence of operation) from the filters module 212. In one implementation, the configuration module 214 selects an upstream and downstream set of filters for each IP address, that is, each electronic device 108, 110, 112 attached to the exemplary NETSIM 104 for testing. Each electronic device 108, 110, 112 participates in a downstream data flow from a service or peer to itself and an upstream data flow from itself to the service or peer. The upstream and downstream data traffic is typically constricted by a modem, such as a broadband modem, which typically favors downstream data flow to the electronic device 108, 110, 112 over upstream data flow from the electronic device 108, 100, 112. Individualized configuration and deployment of filters (“filter profiles”) can be selected for each of the upstream and downstream packet flows for a given electronic device 108, 110, 112. These filter profiles are sent or made available to the executive test engine 216 to guide (or be carried out in) actual tests.

[0032] The diagnostics module 206 measures the network performance of one or more electronic devices 108, 110, 112 and provides feedback to the simulation engine 202 (especially the executive test engine 216 component) and to the evaluation module 208 (for display of performance to the developer). The diagnostics module 206 and the evaluation module 208 will be discussed more fully below with respect to FIGS. 7 and 8.

[0033] The illustrated configuration of the exemplary NETSIM 104 is only one example implementation. Other exemplary implementations are possible. It is worth noting again that in one implementation the overall design of the exemplary NETSIM 104 is modular so that the various engines and modules can be added to, swapped in and out, updated and replaced, etc.

[0034] Exemplary Filters Module

[0035] As shown in FIG. 3, the modularity of the exemplary NETSIM 202 is evident in the filters module 212. In one implementation, the filters module 212 includes a variable set of replaceable single filter modules that can be selected, sequenced, and combined to provide nearly unlimited flexibility in creating filter profiles for tests. Each filter can be hardware, software, or a combination of both. Some filters perform a network condition simulation or control a network parameter.

[0036] An electronic device 108, 110, 112 may have directional traffic flow when connection to a network through a modem that allows fast downloading but relatively slow uploading. In such a case, it is usually desirable to have the electronic device 108, 110, 112 on the highest upstream bandwidth connection available. A bandwidth controller 302 is a filter that includes a system of packet transmission conduits, that is, at least one “in pipe” 304 to control downstream packet traffic from an electronic device 108, 110, 112 and at least one “out pipe” 306 to control upstream packet traffic to an electronic device 108, 110, 112. In a typical filter profile, an instance of the bandwidth controller 302 can be selected for each connected electronic device 108, 110, 112, or alternatively, can be used globally to establish a downstream bandwidth via the in pipe 304 and an upstream bandwidth via the out pipe 306 for all coupled devices at once. The bandwidth controller 302 typically creates bottlenecks to traffic flow to suit or simulate these upstream and downstream differences, so that data traffic to and from an electronic device 108, 110, 112 is constricted in a useful manner for realistic simulation. This allows evaluation of software and/or hardware performance during periods of limited bandwidth, a frequently-occurring condition, for example, in live, online gaming environments.

[0037] A latency simulator 308 is a filter that can be communicatively coupled with a latency queue 310. The latency simulator 308 may include a packet route reader 312 and a packet scheduler 314. The latency simulator 308 emulates delays in packet delivery due to Internet complexities such as repeated routing, heavy traffic, and timeouts. In one implementation, the route reader 312 can obtain packet origin and source information from packet headers and send the information to the scheduler 314, which uses this information to control the timing and delay of packet delivery. The latency queue 310 can be a heap of packets ordered by their release time. The delay in packets to be sent from a source IP address to a destination IP address via the latency queue 310 is typically measured in milliseconds, with a nominal maximum delay of one second. Testing with key-exchange delays may have a nominal maximum delay in the range of five to six seconds.

[0038] A packet loss simulator 316 is a filter for dropping a percentage of the packet traffic between a source IP address and a destination IP address at a drop rate setting. The packet loss simulator 316 may also simulate packet expiration and/or packet loss due to low bandwidth, for example.

[0039] A burst control 318 included in the packet loss simulator 316 allows the exemplary NETSIM 104 to drop a certain percentage of packets in a given amount of time. When the burst control 318 is deployed it overrides the current drop rate setting of the packet loss simulator 316. In one implementation, five parameters can be set for the burst control 318: the burst drop rate, the burst duration, the delay from the beginning of a simulation to a first burst, the total number of bursts to be performed during the test, and the interval between each burst. In an example scenario, the settings of the burst control 318 for packets entering IP address 10.0.0.2 might be a burst drop rate of 10%, a burst duration of ten seconds, a delay of fifteen seconds from the beginning of the simulation until the first burst, a burst count of ten, and an interval between bursts of thirty seconds. In this example scenario, if the packet loss simulator 316 has a drop rate setting of 2%, then fifteen seconds after the simulation begins the 2% drop rate setting changes to a 10% drop rate for ten seconds. This 10% drop rate then changes back to a 2% drop rate for thirty seconds before changing back to a 10% drop rate. This cycle would repeat ten times. Of course, these example parameters may be varied greatly. The burst control 318 is to be distinguished from the exemplary jitter simulator 324, which is a filter that holds a number of packets and sends them altogether, simulating a common occurrence on the real-world Internet 106.

[0040] A packet sequence controller 320 is a filter that can reorder packets to simulate out-of-order packets due to disparate Internet routing. In real-world Internet traffic, packets can arrive in any order after following different routes to their destination, and are typically reordered at the destination according to packet header information. The packet sequence controller 320 tests the ability of software and/or hardware under development to reorder packets and/or tolerate the effects of a network stack that is extending resources to reorder packets. In one implementation, the packet sequence controller 320 is set to switch the order of two packets at repeating selected intervals.

[0041] In some implementations, a packet size module 322 may be able to simulate and/or specify various IP data packet or datagram sizes. This facilitates optimization of data flow, to be discussed more fully below with respect to FIG. 8.

[0042] Additional filters 326, 328 can be plugged into the filters module 212, as previously mentioned. Each filter in the filters module 212 can be swapped out, updated, or replaced with a different filter without disturbing the performance or efficacy of other filters. Thus, the filters module 212 is a library of filters that can be selected, sequenced, and combined for upstream and downstream filter profiles.

[0043] Exemplary Configuration Module

[0044]FIG. 4 shows the configuration module 214 of FIG. 2 in greater detail. The configuration module 214 may contain a filter profile engine 402 that includes an upstream side 404 and a downstream side 406. With guidance from a user via a user interface 408 and/or guidance from a library of profile templates 410, the filter profile engine 402 creates filter profiles to be implemented by the executive test engine 216. Alternatively, the filter profile engine 402 may also use feedback from the diagnostics module 206 and the executive test engine 216 to create one or more filter profiles.

[0045] On the upstream side 404, an upstream configurator 412 employs a filter selector 414 to choose which filters from the filters module 212 will be used in a particular upstream filter profile. Once the filters are selected, a filter sequencer 416 may be employed to determine the order in which each filter performs a simulation. A filter combiner 418 can also be used to determine if any filters are to be applied simultaneously.

[0046] On the downstream side 406, a downstream configurator 420, a filter selector 422, a filter sequencer 424, and a filter combiner 426 are communicatively coupled as illustrated and perform similar functions as corresponding counterparts on the upstream side 404.

[0047] Exemplary Executive Test Engine

[0048]FIG. 5 shows the executive test engine 216 of FIG. 2 in greater detail. A profile processor 502, a progressive testing module 504, an upstream and downstream test controller 506, a timer 508, and an attenuator 510 are communicatively coupled as illustrated. The profile processor 502 is the basic engine in the executive test engine 216 for implementing filter profiles. It should be noted that the executive test engine 216 works through the connectivity engine 204 to implement many of the network condition simulations.

[0049] In one implementation, the upstream and downstream test controller 502 feeds the upstream and downstream filter profiles created by the configuration module 214 to the profile processor 502. The upstream and downstream test controller 506 may augment the profile processor 502 by acting as a coprocessor to keep the upstream and downstream profiles delineated from each other, or in other words, to direct the profile processor 502 to perform a network condition simulation on the upstream side of an electronic device, on the downstream side of an electronic device, or on both.

[0050] In conjunction with the profile processor 502, the progressive testing module 504 uses feedback, for example from the diagnostics module 512, to vary the intensity and duration of network adversity presented to electronic devices 108, 110, 112. In one implementation, the progressive testing module 504 proceeds logically from easy testing, in which the network adversity presented by a filter is light, to rigorous testing, in which the network adversity presented by a filter is difficult. Each filter usually has parameters that can be varied to provide a spectrum of light to difficult network adversity during the simulation period. For example, a drop rate setting for the packet loss simulator 316 can begin at 2% and progress to 20%. Packet bursts managed by burst control 318 can increase in frequency and duration. Bottlenecks provided by the bandwidth controller 302 can become more restrictive as an electronic device 108, 110, 112 succeeds in handling increasingly difficult performance levels. The progressive testing module 504 may also alter and/or vary the progression, sequence, and combination of filters in a filter profile being used for testing, depending on performance feedback. For example, if an electronic device 108, 110, 112 fails a lightweight packet drop test, then the progressive testing module 504 might skip burst and jitter simulations. If the electronic device 108, 110, 112 performs well during a packet dropping simulation, however, the progressive testing module 504 might continue the packet dropping simulation and add a packet reordering “test” or simulation on top of it. The progressive testing module 504 has access to the timer 508 as a reference for measuring performance and for measuring the duration of a progressive simulation being applied. The progressive testing module 504 also has access to the attenuator 510, which includes damping algorithms and/or circuits to taper the intensity and duration of a simulation.

[0051] Exemplary Connectivity Engine

[0052]FIG. 6 shows the connectivity engine 204 of FIG. 2 in greater detail. The connectivity engine 204 may use commonly available network stack configurations, or alternatively, may use a proprietary network stack tuned to a particular platform, such as a proprietary online gaming platform.

[0053] Regarding the components previously illustrated in FIG. 2, the electronic device interface 218 includes at least one network interface card (NIC) 602 and the Internet interface 220 may include a configuration controller 604. The connectivity engine 204 establishes itself as the default gateway between electronic devices 108, 110, 112 and the Internet 106. The electronic devices 108, 110, 112 send packets to the connectivity engine 204 at its internal IP address, and the connectivity engine 204 passes the packets on to the Internet 106 through an external IP address. In the simulation mode, however, the connectivity engine 204 may pass the packets to the simulation engine 202 before the packets are sent to the Internet 106.

[0054] The connectivity engine 204 may also include a virtual NIC driver 606. In one implementation, the NIC driver 606 simulates multiple virtual NICs, each having its own IP address. In this way, the NETSIM 104 requires only one physical network adapter in the electronic device interface 218. In another implementation, the electronic device interface 218 uses two or more physical NICs if a virtual NIC driver 606 is not used.

[0055] Using a NAT implementation, the connectivity engine 204, either through the virtual NIC driver 606, a virtual IP address controller 608, or both, can handle multiple internal IP addresses. In one implementation, the connectivity engine 204 separates individual electronic devices 108, 110, 112 by placing them on separate subnets, via a discrete subnet control module 610. The separation onto individual subnets allows the exemplary NETSIM 104 to route packets through its own simulation engine 202 rather than routing packets directly between electronic devices 108, 110, 112. Because the exemplary NETSIM 104 handles all packets between electronic devices 108, 110, 112, it has the opportunity to change network conditions between them, i.e., simulate network adversity. The exemplary NETSIM 104 also has the opportunity to change network conditions between electronic devices 108, 110, 112 and the rest of the Internet 106.

[0056] The NAT simulator 222 can emulate the common scenario of an electronic device 108, 110, 112 connected to the Internet 106 through a home NAT device that allows another personal computer to use the Internet 106 through the same Internet Service Provider (ISP) connection. The NAT simulator 222 can also simulate multiple peers with different home NAT configurations talking to each other. Current NAT types have different filtering for taking into account IP addresses and/or ports. The NAT simulator 222 in conjunction with the port mapper 612 and other connectivity engine 204 components, can simulate different NAT types for behind-the-NAT connectivity testing. This saves time for software and/or hardware developers. In one implementation, the NAT simulator 222 defaults to a “type 2” NAT. The NAT simulator 222 can also accommodate electronic devices 108, 110, 112 with NAT capability supporting only Internet Protocol version 4 (IPv4) and not IPv6.

[0057] A domain name service (DNS) redirector 614 offers the feature of directing among different online service instances. The DNS redirector 614 enables software under development to be tested on multiple environments with different sets of data.

[0058] The number of electronic devices 108, 110, 112 that can be supported by the connectivity engine 204 is not limited, unless the particular type of electronic device 108, 110, 112 has a built-in limited IP address range. With electronic devices 108, 110, 112 having an exemplary built-in IP address range from 10.0.0.2 to 10.0.255.2, the connectivity engine 204 could handle 256 electronic devices 108, 110, 112 since each electronic device 108, 110, 112 has a unique IP address in the range. Each electronic device 108, 110, 112 could have a gateway and primary DNS configured to 10.0.X.1, and each could have a subnet mask configured to 255.255.255.0, which in this implementation could achieve the desired result of sending all packets through the connectivity engine 204 instead of directly to another electronic device 108, 110, 112.

[0059] In one implementation, NAT settings are configured for the connectivity engine 204. Via the virtual IP address controller 608, the range of virtual IP addresses available to electronic devices 108, 110, 112 can be adjusted. If an IP address range such as 10.0.X.1 is adopted, where X is between 0 and 255 inclusive, then if two instances of the exemplary NETSIM 104 are operative on the same subnet, the first instance can lock out the other instance.

[0060] The external network settings for the exemplary NETSIM 104 can be either dynamic or static. By default, a DHCP manager 616 and/or the configuration controller 604 try to configure the Internet interface 220 via DHCP, and may hand out different IP addresses to various electronic devices 108, 110, 112 to facilitate connectivity and network simulation.

[0061] A universal protocol adapter 618 may accommodate a variety of protocols, that is, each virtual IP address (each electronic device 108, 110, 112) on the NIC 606 may have a different protocol associated. The interface established between a particular IP address of a virtual NIC and a host computing device, such as the exemplary computing device 102, may accommodate a variety of “tunnels.” The protocol adapter 618 may allow connection of electronic devices 108, 110, 112 each using a different protocol such as various framing schemes, TCP/IP, Point-to-Point Protocol over Ethernet (PPPoE), etc.

[0062] In conjunction with the universal protocol adapter 618, a home environment simulator 620, a peer-to-peer simulator 622, a massively multiplayer (MMP) simulator 624, and a peer-as-server simulator 626 can simulate their namesake network environments. The home environment simulator 620 can set-Up and coordinate various home NAT configurations for behind-the-NAT simulation, as mentioned above.

[0063] The peer-to-peer simulator 622 can emulate typical connectivity between electronic devices 108, 110, 112, and likewise between each of the electronic devices 108, 110, 112 and an Internet service. The peer-to-peer simulator 622 can, in one example implementation, mimic circumstances wherein the electronic device 108, 110, 112 is a gaming console that “cheats” by terminating its connection with a peer while maintaining a connection to the Internet service. In a multiplayer game, a clever user may break connections to peers but not to the Internet service to appear “honest” and connected from the Internet service's point of view, while having the game voided because peers are not reporting the same score. The peer-to-peer simulator 622 thus allows simulation of connectivity between peers and Internet services and can test the effects of timeouts between peers and Internet services.

[0064] The massively multiplayer (MMP) simulator 624 can simulate a multiplayer game or other collection of electronic devices 108, 110, 112 having thousands, tens of thousands, and hundreds of thousands of simultaneous gamers or users. This may be accomplished by the MMP simulator 624 implementing a filter profile that mimics traffic and connectivity measured previously during a real-world MMP gaming session.

[0065] The peer-as-server simulator 626 can simulate an increasingly popular connectivity scheme, used increasingly in applications such as online gaming, in which one of the peers assumes the role of server. A peer-as-server configuration is typically harder to test than peer-to-peer setups. The peer-as-server simulator 626 can accommodate peer-as-server configurations, for example, by allotting an asymmetric filter profile for one peer electronic device 108, 110, 112 that sets this peer apart from the others and imparts to the peer data flows characteristic of a server.

[0066] Exemplary Diagnostics Module

[0067] As shown in FIG. 7, the exemplary NETSIM 104 also includes the aforementioned diagnostics module 206, which includes components to measure electronic device 108, 110, 112 performance during application of network adversity by the executive test engine 216. The measured performance can be used for real-time or summary performance reporting, or as feedback to the progressive testing module 504 for tailoring filter profiles. Accordingly, a measurement module 702, a feedback coordinator 704, and a benchmark library 706 are communicatively coupled as illustrated. The measurement module 702 may include components such as performance “sniffers” 708, a real-time diagnostics module 710, and a failure detector 712. The real-time diagnostics module 710 can perform on-the-fly data traffic analysis based on input from a performance sniffer 708 and send information to the executive test engine 216 via the feedback coordinator 704. The executive test engine 216 in turn may modify a simulation based on the information, which can be sensed again by the performance sniffers 708, in a continuing cycle. The failure detector 712 can point out when an electronic device 108, 110, 112 is not responding properly and/or when a particular network simulation is no longer worth pursuing (e.g., the electronic device 108, 110, 112 is functioning in the face of applied network adversity but nowhere near an expected benchmark).

[0068] The benchmark library 706 includes expected levels of performance not only regarding data traffic relative to individual electronic devices 108, 110, 112 but also relative to the many NAT simulations, filter profiles, and connectivity environments possible using the exemplary NETSIM 104. The benchmark library 706 may store an expected level of performance for each parameter in an example filter profile that specifies, for example, upstream bandwidth, downstream bandwidth, number of electronic devices 108, 110, 112 participating in the simulation, styles of NAT, IP addresses, port mapping for each participating electronic device 108, 110, 112, drop rate setting for a selected packet loss simulator 316, packet reordering rate and directionality for the packet sequence controller 320, etc.

[0069] Exemplary Evaluation Module

[0070]FIG. 8 shows the exemplary evaluation module 208 of FIG. 2 in greater detail. A forensics module 802, a performance profiler 804, a packet optimizer 806, and a connectivity optimizer 808 are communicatively coupled as illustrated. The forensics module 802 may further include a statistics module 810. The performance profiler 804 may further include a report generator 812, and the packet optimizer 806 may further includes an interpolator 814 for performing trial and error simulations to optimal packet size, etc.

[0071] The forensics module 802 gathers information from the executive test engine 216 and/or the diagnostics module 206 to determine performance of an electronic device 108, 110, 112 relative to a given simulation. The statistics module 810 gathers statistics about the network traffic of a given piece of software and/or hardware under development, such as the number of bytes sent upstream or downstream by a given electronic device 108, 110, 112. These statistics can be used by the forensics module 802 to troubleshoot connectivity problems and also find out which performance characteristics were satisfactory.

[0072] The information gathered by the statistics module 810 can also be used by the connectivity optimizer 808 to determine if the protocol used is the most suitable for the circumstances, and by the packet optimizer 806 to determine if data packaging was performed correctly, for example, making use of padding bytes or not.

[0073] The packet optimizer 806 can further use the statistics information to determine if packet payloads are reasonably larger than packet overhead that the net stack applies. Sending small packets upstream or downstream results in exorbitant bandwidth requirements because of overhead added to an unnecessary number of packets. A typical electronic device 108, 110, 112, such as one involved in an online multiplayer game, may operate through a modem that has a speed of 128 kilobytes per second. Each game being played in the online multiplayer setting can require a portion of the available bandwidth, and if the players chat online an additional six to ten kilobytes of the bandwidth are required for each person talking. If the gaming software is sending data to too many ports at once and/or not taking advantage of overhead collapsing, then the bandwidth can be used up very quickly slowing down the gaming action considerably.

[0074] In some implementations, the interpolator 814 can send packet optimization information to the packet size module 322 and/or the progressive testing module 504 to adjust packet size or to inform these modules that certain size packets are being used. The interpolator 814 may perform trial and error packet size adjustments or may calculate only a hypothetical optimal packet size if size adjustment of actual packets is not available.

[0075] The connectivity optimizer 808 works in conjunction with the connectivity engine 204 to determine optimized connection protocols and/or determines desirable connectivity solutions to report to the developer.

[0076] The performance profiler 804 can gather together diagnostic, statistical, and measurement information gathered by the other exemplary NETSIM 104 components and presents these to the developer through the display 116. The performance profiles and other information presented to the developer can be presented in real-time as simulations are being performed or can be summarily presented at the end of a run or stored in log files.

[0077] Exemplary Methods

[0078]FIG. 9 shows an exemplary method 900 of simulating realistic network conditions for testing network performance of an electronic device. This exemplary method 900 can be performed by a device, such as the exemplary NETSIM 104 shown in FIGS. 1-8. In the flow diagram, the operations are summarized in individual blocks. The operations may be performed in hardware and/or as machine-readable instructions (software or firmware) that can be executed by a processor.

[0079] At block 902, network connections are simulated for coupling an electronic device to a network. Simulated network connections couple electronic devices (having hardware and software) to a network, such as the Internet. Each electronic device may have its own IP address, port mapping, and connectivity protocol. The electronic device sends data to other electronic devices and/or to an Internet service. If the software and/or hardware of the electronic device are under development, then the upstream and downstream data transfers initiated and/or controlled by the electronic device may poorly utilize available bandwidth and network resources.

[0080] At block 904, a network condition is flexibly simulated. The simulated network condition may be adverse to data transfer in order to test the ability of the electronic device to successfully and efficiently transfer data.

[0081] At block 906, the electronic device is evaluated during the simulated network condition. This evaluation gauges the ability of the electronic device to make efficient use of available network conditions. The evaluation also allows modification of the current network condition simulation(s) and network connectivity simulation(s) or creation of a new test.

[0082]FIG. 10 shows another exemplary method 1000 of progressively testing the data transfer performance of an electronic device on a network. This exemplary method 1000 can be performed by a device, such as the exemplary NETSIM 104 shown in FIGS. 1-8. In the flow diagram, the operations are summarized in individual blocks. The operations may be performed in hardware and/or as machine-readable instructions (software or firmware) that can be executed by a processor.

[0083] At block 1002, filters for simulating network conditions are selected.

[0084] At block 1004, some of the selected filters are combined.

[0085] At block 1006, the selected and the combined filters are sequenced into a filter profile.

[0086] At block 1008, the filters in the filter profile are applied to a network carrying data traffic of an electronic device.

[0087] At block 1010, the data traffic is evaluated during the application of the filters.

[0088] At block 1012, if the test criteria are fulfilled, then the method 1000 branches to block 1014 and ends.

[0089] At block 1012, if the test criteria are not fulfilled, then the method 1000 branches to block 1016 and the method 1000 repeats with a reselection of filters based on the evaluation.

[0090] Exemplary Computing Device

[0091]FIG. 11 shows an exemplary computer 102 suitable as an environment for practicing aspects of the subject matter. The components of computer 102 may include, but are not limited to, a processing unit 1120, a system memory 1130, and a system bus 1121 that couples various system components including the system memory 1130 to the processing unit 1120. The system bus 1121 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISAA) bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus also known as the Mezzanine bus.

[0092] Exemplary computer 102 typically includes a variety of computer-readable media. Computer-readable media can be any available media that can be accessed by computer 102 and includes both volatile and nonvolatile media, removable and non-removable media. By way of example, and not limitation, computer-readable media may comprise computer storage media and communication media. Computer storage media include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computer 102. Communication media typically embodies computer-readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media. The term “modulated data signal” means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media includes wired media such as a wired network or direct-wired connection and wireless media such as acoustic, RF, infrared and other wireless media. Combinations of any of the above should also be included within the scope of computer readable media.

[0093] The system memory 1130 includes computer storage media in the form of volatile and/or nonvolatile memory such as read only memory (ROM) 1131 and random access memory (RAM) 1132. A basic input/output system 1133 (BIOS), containing the basic routines that help to transfer information between elements within computer 102, such as during start-up, is typically stored in ROM 1131. RAM 1132 typically contains data and/or program modules that are immediately accessible to and/or presently being operated on by processing unit 1120. By way of example, and not limitation, FIG. 11 illustrates operating system 1134, application programs 1135, other program modules 1136, and program data 1137. Although the exemplary search engine 204 is depicted as software in random access memory 1132, other implementations of an exemplary search engine 204 can be hardware or combinations of software and hardware.

[0094] The exemplary computer 102 may also include other removable/non-removable, volatile/nonvolatile computer storage media. By way of example only, FIG. 11 illustrates a hard disk drive 1141 that reads from or writes to non-removable, nonvolatile magnetic media, a magnetic disk drive 1151 that reads from or writes to a removable, nonvolatile magnetic disk 1152, and an optical disk drive 1155 that reads from or writes to a removable, nonvolatile optical disk 1156 such as a CD ROM or other optical media. Other removable/non-removable, volatile/nonvolatile computer storage media that can be used in the exemplary operating environment include, but are not limited to, magnetic tape cassettes, flash memory cards, digital versatile disks, digital video tape, solid state RAM, solid state ROM, and the like. The hard disk drive 1141 is typically connected to the system bus 1121 through a non-removable memory interface such as interface 1140, and magnetic disk drive 1151 and optical disk drive 1155 are typically connected to the system bus 1121 by a removable memory interface such as interface 1150.

[0095] The drives and their associated computer storage media discussed above and illustrated in FIG. 11 provide storage of computer-readable instructions, data structures, program modules, and other data for computer 102. In FIG. 11, for example, hard disk drive 1141 is illustrated as storing operating system 1144, application programs 1145, other program modules 1146, and program data 1147. Note that these components can either be the same as or different from operating system 1134, application programs 1135, other program modules 1136, and program data 1137. Operating system 1144, application programs 1145, other program modules 1146, and program data 1147 are given different numbers here to illustrate that, at a minimum, they are different copies. A user may enter commands and information into the exemplary computer 102 through input devices such as a keyboard 114 and pointing device 1161, commonly referred to as a mouse, trackball, or touch pad. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 1120 through a user input interface 1160 that is coupled to the system bus, but may be connected by other interface and bus structures, such as a parallel port, game port, or a universal serial bus (USB). A monitor 116 or other type of display device is also connected to the system bus 1121 via an interface, such as a video interface 1190. In addition to the monitor 116, computers may also include other peripheral output devices such as speakers 1197 and printer 1196, which may be connected through an output peripheral interface 1195.

[0096] The exemplary computer 102 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 1180. The remote computer 1180 may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to computer 102, although only a memory storage device 1181 has been illustrated in FIG. 11. The logical connections depicted in FIG. 11 include a local area network (LAN) 1171 and a wide area network (WAN) 1173, but may also include other networks. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets, and the Internet 106.

[0097] When used in a LAN networking environment, the exemplary computer 102 is connected to the LAN 1171 through a network interface or adapter 1170. When used in a WAN networking environment, the exemplary computer 102 typically includes a modem 1172 or other means for establishing communications over the WAN 1173, such as the Internet. The modem 1172, which may be internal or external, may be connected to the system bus 1121 via the user input interface 1160, or other appropriate mechanism. In a networked environment, program modules depicted relative to the exemplary computer 102, or portions thereof, may be stored in the remote memory storage device. By way of example, and not limitation, FIG. 11 illustrates remote application programs 1185 as residing on memory device 1181. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.

[0098] Conclusion

[0099] The foregoing describes exemplary network simulation tools and related methods for flexibly simulating connectivity between electronic devices and their Internet services and testing their network performance during realistic real-time network conditions. The subject matter described above can be implemented in hardware, in software, or in both hardware and software. In certain implementations, the exemplary NETSIM and related methods may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The subject matter can also be practiced in distributed communications environments where tasks are performed over wireless communication by remote processing devices that are linked through a communications network. In a wireless network, program modules may be located in both local and remote communications device storage media including memory storage devices. 

1. A method, comprising: flexibly establishing a first communicative coupling between a first electronic device and a network, wherein the first communicative coupling allows a first data transfer between the first electronic device and the network; flexibly simulating at least one network condition; and determining a parameter of the first data transfer during simulation of the network condition.
 2. The method as recited in claim 1, further comprising flexibly establishing a second communicative coupling between a second electronic device and the network, wherein the second communicative coupling allows a second data transfer between the second electronic device and the first electronic device through the network; and determining a parameter of the second data transfer during the simulation of the network condition.
 3. The method as recited in claim 2, wherein flexibly establishing the first and the second communicative coupling comprises establishing a first network connection protocol for the first communicative coupling and establishing a second network connection protocol for the second communicative coupling.
 4. The method as recited in claim 3, further comprising simulating a first network address translation environment for the first communicative coupling and simulating a second network address translation environment for the second communicative coupling.
 5. The method as recited in claim 2, wherein flexibly simulating at least one network condition comprises varying an intensity or a duration of at least one network condition.
 6. The method as recited in claim 2, further comprising flexibly simulating a profile of multiple network conditions, wherein a profile is a sequence of selected network condition simulations and combinations of simultaneous network condition simulations.
 7. The method as recited in claim 6, further comprising monitoring one of the first data transfer and the second data transfer and selecting the profile based on the monitoring.
 8. The method as recited in claim 6, further comprising monitoring one of the first data transfer and the second data transfer and changing the profile based on the monitoring.
 9. The method as recited in claim 6, further comprising monitoring one of the first data transfer and the second data transfer and varying one of an intensity and a duration of at least part of the profile based on the monitoring.
 10. The method as recited in claim 6, further comprising creating a performance report based on the determining of at least one of the first and second data transfer parameters during the flexible simulation of a profile.
 11. The method as recited in claim 1, wherein a network condition simulation includes one of limiting data transfer bandwidth upstream from one of the electronic devices, limiting data transfer bandwidth downstream from one of the electronic devices, delaying data delivery, dropping data packets, temporarily increasing a percentage of data packets transferred per unit time, reordering data packets, altering a packet size, and increasing jitter, wherein jitter is holding packets to send all at once.
 12. The method as recited in claim 10, further comprising configuring the profile based on a data transfer capability of a software in one of the first and second electronic devices.
 13. The method as recited in claim 10, further comprising configuring a new profile based on one of the first and second data transfer parameters.
 14. The method as recited in claim 10, further comprising configuring an upstream filter profile for an electronic device and a downstream filter profile for the electronic device, wherein upstream refers to data flow from the electronic device and downstream refers to data flow to the electronic device.
 15. The method as recited in claim 10, further comprising storing and retrieving a profile template to later reproduce a sequence of network condition simulations and combination of network condition simulations represented by the profile template.
 16. The method as recited in claim 2, further comprising monitoring one of the first and second data transfer parameters in real-time while flexibly simulating an adverse network condition.
 17. The method as recited in claim 16, further comprising progressively increasing the adversity of the network condition based on the monitoring.
 18. The method as recited in claim 16, further comprising changing a connectivity parameter of one of the first and second communicative couplings based on the monitoring.
 19. The method as recited in claim 2, further comprising configuring the first and second communicative couplings to simulate NAT peer-to-peer connections.
 20. The method as recited in claim 2, further comprising simulating massively multiplayer (MMP) data traffic between the first electronic device and the second electronic device.
 21. The method as recited in claim 2, further comprising simulating peer-as-server data traffic between the first electronic device and the second electronic device.
 22. The method as recited in claim 2, further comprising comparing one of the first and second data transfer parameters with a data transfer benchmark and changing a simulation of a network condition based on the comparison.
 23. The method as recited in 2, further comprising gathering statistics related to one of the first and the second data transfer parameters.
 24. The method as recited in claim 23, further comprising creating a performance profile based on one of the first and second data transfer parameters and the statistics.
 25. The method as recited in claim 24, further comprising changing a connectivity protocol of one of the first and second communicative couplings based on monitoring one of the first and second data transfer parameters during simulation of a network condition.
 26. The method as recited in claim 2, wherein the data transfer uses data packets.
 27. The method as recited in claim 26, further comprising monitoring the transfer of packets over the network and recommending a different packet size based on the monitoring.
 28. The method as recited in claim 26, further comprising calculating an efficiency of packet size based on a ratio of packet header size to packet payload size.
 29. An apparatus, comprising: a simulation engine to produce network conditions for testing performance of gaming software on a gaming network; and a connectivity engine to establish the configuration of the gaming network.
 30. The apparatus as recited in claim 29, further comprising network simulation filters in the simulation engine.
 31. The apparatus as recited in claim 30, wherein a network simulation filter is one of an upstream bandwidth controller, a downstream bandwidth controller, a data transfer latency simulator, a packet loss simulator, a data packet burst simulator, a packet sequence controller, a packet size controller, and a jitter simulator.
 32. The apparatus as recited in claim 29, further comprising a configuration module in the simulation engine to arrange at least some of the simulation filters into a filter profile.
 33. The apparatus as recited in claim 32, wherein the configuration module arranges an upstream filter profile and a downstream filter profile.
 34. The apparatus as recited in claim 32, further comprising an executive test engine to apply the simulation filters to a data transfer according to the filter profile.
 35. The apparatus as recited in claim 29, further comprising a diagnostics module to measure a data transfer parameter.
 36. The apparatus as recited in claim 35, wherein the diagnostics module compares the measured data transfer parameter to a benchmark.
 37. The apparatus as recited in claim 35, further comprising a progressive testing module to receive information from the diagnostics module and vary the application of the simulation filters to the data transfer based on the information.
 38. The apparatus as recited in claim 37, wherein the progressive testing module varies the application of the simulation by one of increasing or decreasing the difficulty of the data transfer.
 39. The apparatus as recited in claim 29, wherein the connectivity engine further comprises an electronic device interface and an Internet interface.
 40. The apparatus as recited in claim 29, wherein the connectivity engine includes a virtual network interface driver to simulate multiple network interface cards on a single physical network interface card in the electronic device interface.
 41. The apparatus as recited in claim 29, wherein the connectivity engine uses two or more network interface cards without a virtual local area network.
 42. The apparatus as recited in claim 29, wherein the connectivity engine includes a port mapper.
 43. The apparatus as recited in claim 29, wherein the connectivity engine further comprises a protocol adapter to establish a communications protocol for transferring. data on the Internet.
 44. The apparatus as recited in claim 29, wherein the connectivity engine further comprises a network address translation module to simulate a network address translation style or configuration.
 45. The apparatus as recited in claim 29, wherein the connectivity engine further comprises a home environment module to simulate local area network connections and network address translation configurations used in personal residences.
 46. The apparatus as recited in claim 29, wherein the connectivity engine further comprises a peer-to-peer module to simulate a gaming network connection between multiple gaming peers.
 47. The apparatus as recited in claim 29, wherein the connectivity engine further comprises a massively multiplayer module to simulate data traffic between multiple online gaming peers and one or more Internet services.
 48. The apparatus as recited in claim 29, wherein the connectivity engine further comprises a domain name service redirector.
 49. The apparatus as recited in claim 29, wherein the connectivity engine further comprises a dynamic host configuration protocol (DHCP) manager.
 50. The apparatus as recited in claim 29, wherein the connectivity engine further comprises an evaluation module to send performance results to a user or developer.
 51. The apparatus as recited in claim 50, wherein the evaluation module further comprises a forensics module to evaluate a data transfer response to simulation filters applied by the executive test engine.
 52. The apparatus as recited in claim 51, wherein the forensics module further comprises a statistics module to gather statistics about data transfer performance.
 53. The apparatus as recited in claim 50, wherein the evaluation module further comprises a connectivity optimizer to increase data transfer performance by relating information from the diagnostics module to connectivity parameters.
 54. The apparatus as recited in claim 50, wherein the evaluation module further comprises a packet optimizer to increase data transfer performance by relating information from the diagnostics module to packet characteristics.
 55. The apparatus as recited in claim 54, wherein the packet characteristics include a ratio comprising packet overhead divided by packet payload.
 56. The apparatus as recited in claim 54, wherein the packet characteristics include a packet size.
 57. A development environment for online gaming software, comprising: a network adversity simulator; and a network connectivity simulator.
 58. The development environment as recited in claim 57, wherein the network adversity simulator flexibly builds a rearrangeable set of network conditions that simulate adverse data transfer conditions during an online gaming session.
 59. The development environment as recited in claim 58, wherein the network connectivity simulator establishes a rearrangeable set of network connections and network protocols for applying the rearrangeable set of network conditions to a data transfer.
 60. The development environment as recited in claim 57, further comprising a software performance evaluator to report gaming data transfer parameters relative to network conditions simulated by the network adversity simulator, to network connections, and to network protocols simulated by the network connectivity simulator.
 61. A network adversity simulator, comprising: a set of network condition filters; a configuration module; and an executive test engine.
 62. The network adversity simulator as recited in claim 60, wherein the configuration module creates a filter profile for each of an upstream data flow and a downstream data flow from an electronic device.
 63. The network adversity simulator as recited in claim 62, wherein the electronic device runs gaming software that controls data transfer to and from the electronic device.
 64. The network adversity simulator as recited in claim 63, wherein a diagnostics module in the network adversity simulator measures data transfer performance and sends performance information to a progressive test engine in the network adversity simulator to vary an intensity or a duration of network adversity based on the data transfer performance.
 65. A network connectivity simulator, comprising: a virtual network interface card driver to emulate multiple IP addresses on one network interface card; a network address translation simulator to emulate various network address translation styles; a port mapper to establish different configurations of port usage for the multiple IP addresses; and a universal protocol adapter to establish different communications protocols for each of the multiple IP addresses.
 66. A system, comprising: multiple electronic devices communicatively coupled to each other and to an Internet service, wherein at least one of the electronic devices executes gaming software under development, the gaming software controlling data flow to and from the at least one electronic device; a flexible network simulator for applying adverse network conditions to data transfers between the multiple electronic devices or between a an electronic device and the Internet service; and a connectivity simulator to modify network connections and network protocols for improving data transfer performance between the multiple electronic devices or between a an electronic device and the Internet service.
 67. The system as recited in claim 66, wherein the connectivity simulator establishes a style of network address translation protocol.
 68. The system as recited in claim 66, further comprising a display for sending a user or software developer information about the data transfer performance of the software for a given set of network connections, network protocols, and adverse network conditions.
 69. One or more computer readable media containing instructions that are executable by a computer to perform actions comprising: connecting a an electronic device to a network for data communications; flexibly simulating a variable set of network conditions; and evaluating a data communications performance of the electronic device during application of the set of network conditions.
 70. The one or more computer readable media as recited in claim 69, further comprising instruction to connect multiple electronic devices to the network, wherein data communications performance between the electronic devices is based on software in one of the electronic devices.
 71. The one or more computer readable media as recited in claim 70, wherein each electronic device uses a connectivity protocol and the second electronic device uses a different connectivity protocol than the first electronic device.
 72. The one or more computer readable media as recited in claim 71, wherein the first electronic device and the second electronic device communicate using network address translation (NAT).
 73. The one or more computer readable media as recited in claim 72, further comprising instructions to simulate different styles of NAT.
 74. The one or more computer readable media as recited in claim 73, further comprising instructions to determine a parameter for a data communication between the electronic devices.
 75. The one or more computer readable media as recited in claim 69, further comprising instructions to simultaneously simulate multiple members of the variable set of network conditions.
 76. The one or more computer readable media as recited in claim 75, further comprising instructions to establish a first profile of network condition simulations for data traffic upstream from the electronic device and second profile of network condition simulations for data traffic downstream from the electronic device.
 77. The one or more computer readable media as recited in claim 76, further comprising instructions to reuse the first or second profile.
 78. The one or more computer readable media as recited in claim 77, further comprising instructions to test the electronic device by using a more complex or difficult profile if the electronic device performs a data communication satisfying a benchmark while using a simpler or less difficult profile.
 79. The one or more computer readable media as recited in claim 69, wherein the connecting the electronic device to the network is established through network address translation.
 80. The one or more computer readable media as recited in claim 69, further comprising instructions to gather statistics on the data communications performance of the electronic device during application of the set of network conditions.
 81. The one or more computer readable media as recited in claim 80, further comprising instructions to create a performance profile based on the statistics.
 82. The one or more computer readable media as recited in claim 81, further comprising instructions to change a size of data packets used in the data communications to improve a data communications performance of the electronic device.
 83. The one or more computer readable media as recited in claim 81, further comprising instructions to change a connectivity protocol of the electronic device to improve a data communications performance. 